const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  
  transpileDependencies: true,
  lintOnSave: false,
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: []
    }
  },
  publicPath: './',

  // 代理服务，处理接口跨域请求
  devServer:{
    port:'8080',
    proxy:{
      '/api':{
        target:'http://50345.dev.heronshn.com/api',
        changeOrigin:true,
        pathRewrite:{
          '^/api':'/'
        }
      }
    }
  }
  
})


